# !/usr/bin/python3
# -*- coding:utf-8 -*-
"""
@author: JHC000abc@gmail.com
@file: util_entrypt.py
@time: 2025/3/31 15:40 
@desc: 

"""
import hashlib


class Entrypt:
    @staticmethod
    def make_md5(file):
        """

        :param file:
        :return:
        """
        md5_hash = hashlib.md5()
        with open(file, 'rb') as f:
            # 分块读取文件，避免内存占用过多
            for chunk in iter(lambda: f.read(4096), b""):
                md5_hash.update(chunk)

            # 返回文件的 MD5 值
        return md5_hash.hexdigest()

